package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 出入库记录对象 warehouserecord
 * 
 * @author ruoyi
 * @date 2020-12-16
 */
public class Warehouserecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出入库表 */
    private Long wrId;

    /** 所属项目 */
    @Excel(name = "所属项目")
    private Projects projects;

    /** 材料外键 */
    @Excel(name = "材料外键")
    private Material material;

    /** 所属仓库 */
    @Excel(name = "所属仓库")
    private Warehouse warehouse;

    /** 操作时间 */
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date wrDate;

    /** 操作内容 */
    @Excel(name = "操作内容")
    private String wrState;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getWrId() {
        return wrId;
    }

    public void setWrId(Long wrId) {
        this.wrId = wrId;
    }

    public Projects getProjects() {
        return projects;
    }

    public void setProjects(Projects projects) {
        this.projects = projects;
    }

    public Material getMaterial() {
        return material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }

    public Warehouse getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(Warehouse warehouse) {
        this.warehouse = warehouse;
    }

    public Date getWrDate() {
        return wrDate;
    }

    public void setWrDate(Date wrDate) {
        this.wrDate = wrDate;
    }

    public String getWrState() {
        return wrState;
    }

    public void setWrState(String wrState) {
        this.wrState = wrState;
    }

    @Override
    public String toString() {
        return "Warehouserecord{" +
                "wrId=" + wrId +
                ", projects=" + projects +
                ", wrDate=" + wrDate +
                ", wrState='" + wrState + '\'' +
                '}';
    }
}
